<?php
use common\components\widgets\Datetimepicker;

Datetimepicker::widget(['flag'=>'timepicker','format'=>'Y-m-d']);
?>
<?php $form = \yii\widgets\ActiveForm::begin(['enableAjaxValidation' => true,'enableClientValidation' => false,'options'=>['class'=>'form-validate']]); ?>
    <table width="100%" class="table-form">
        <tr>
            <th class="zx-goods-table" style="width: 32%;padding-top:0;" >课程名称</th>
            <td><?=$maxLesson->title?></td>
        </tr>
        <tr>
            <td colspan="2" height="10"></td>
        </tr>
        <tr>
            <th class="zx-goods-table" style="width: 32%;padding-top:0;">上课时间</th>
            <td><?=$strtime?></td>
        </tr>
        <tr>
            <td colspan="2" height="10"></td>
        </tr>
        <tr>
            <th class="zx-goods-table" style="width: 32%;padding-top:0;">最后一节课日期</th>
            <td><?=date('Y-m-d',$maxLesson->class_date)?></td>
        </tr>
        <tr>
            <td colspan="2" height="10"></td>
        </tr>
        <tr>
            <th class="zx-goods-table" style="width: 32%">选择时间</th>
            <td><?= $form->field($model, 'start_time', ['template' => '{input}{error}{hint}'])->textInput(['class'=>'timepicker input-text']) ?></td>
        </tr>

<!--        <tr>-->
<!--            <td colspan="2" height="10"></td>-->
<!--        </tr>-->
        <tr>
            <th class="zx-goods-table" style="width: 32%">课次数</th>
            <td><?= $form->field($model, 'num', ['template' => '{input}{error}{hint}'])->textInput(['class'=>'input-text']) ?></td>
        </tr>

    </table>
    <div class="m_top_10 btn" style="display: none">
        <?= \yii\helpers\Html::submitButton('提交', ['class' => "button", 'id' => 'dosubmit']) ?>
    </div>
<?php \yii\widgets\ActiveForm::end(); ?>
